package me.zhengjie.modules.order.domain.resp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.modules.order.domain.OrderDetail;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrderListResp {

    @ApiModelProperty(value = "订单id")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderSn;

    @ApiModelProperty(value = "订单状态【1.待支付 2.待收货 3.已完成】")
    private Integer orderStatus;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "实付款【和总金额一样，目前没有其他参数影响该字段】")
    private BigDecimal realPrice;

    @ApiModelProperty(value = "实付款【和总金额一样，目前没有其他参数影响该字段】")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "订单详情")
    private List<OrderDetail> detailList;

}
